<template>
  <div class="newpage">
    <iu-header>
      <template #left>
        <x-icon
          @click="back"
          type="ios-arrow-back"
          size="21"
          fill="#fff"
        ></x-icon>
        <!-- <iconSvg name="g6change" w="25" style="color:#fff;margin-left: 8px;" @click.native="backToG6page('g6')"></iconSvg> -->
      </template>
      <template #title>检查计划</template>
      <template #right>
       <div v-focusable  @click="backToHomepage">
          <iconSvg name="home" w="20px" h="22px" class="right_icon"></iconSvg>
        </div>
      </template>
    </iu-header>
    <Application></Application>
    <div class="newpage_work">
      <div class="showPie" :class="{ show: showPie }">
        <div class="show-title">
          <div class="fixed_dep_box">
            <div class="btn_box">
              <div
                class="department_select"
                :class="showTree ? 'statusIndex' : ''"
                @click="showTreeFn(true)"
              >
                <p class="department_name">
                  {{ curDepartment.departmentName }}
                </p>
                <iconSvg
                  name="downFill"
                  w="23px"
                  height="13px"
                  class="selece_icon"
                  ref="selece_icon"
                ></iconSvg>
              </div>
              <transition name="slide">
                <div class="dep_box" v-show="showTree">
                  <dep-tree
                    ref="depTree"
                    @changeId="change"
                    @showTreeFn="showTreeFn"
                    @initCurDepartment="initCurDepartment"
                    :initDepartment="curDepartment"
                  ></dep-tree>
                </div>
              </transition>
            </div>
            <div
              v-if="showTree"
              @click="showTreeFn(false)"
              style="position: fixed;top: 0;left:0; width: 100vw;height: 100vh; z-index: 9"
            ></div>
          </div>
          <div class="show-btn" @click="showPie = false" v-if="showPie">
            <span>收起</span>
            <x-icon type="ios-arrow-down" size="18" fill="#fff"></x-icon>
          </div>
          <div class="show-btn" v-else-if="!showPie" @click="showPie = true">
            <span>展开</span>
            <x-icon type="ios-arrow-up" size="18" fill="#fff"></x-icon>
          </div>
        </div>
        <!-- <div style="width: 100vw; height: 260px;" v-show="showPie">
          <chart-list :chart-list="chartList" :show-title="false"></chart-list>
        </div> -->
        <div
          v-show="showPie"
          id="myPieChart"
          ref="chart"
          style="width: 100vw; height: 260px;"
        ></div>
        <div
          v-show="showPie"
          class="chart_empty"
          v-if="!checkSecurityRecordData.length"
        >
          <img src="/static/img/chart_empty.png" />
          <p>暂无相关数据</p>
        </div>
      </div>
    </div>
    <div class="produce-tab">
      <div
        v-for="(item, index) in topNav"
        :key="index"
        class="produce-tab-item"
        @click="$router.push({ name: item.key, query: $route.query })"
        :class="{ active: item.isSelected }"
      >
        <span>{{ item.name }}</span>
        <div class="line"></div>
      </div>
    </div>
    <div class="newpage_work">
      <tab
        class="newpage_tab"
        style="z-index:0"
        active-color="#456de6"
        default-color="#fff"
        custom-bar-width="80%"
      >
        <tab-item @on-item-click="handler(2)" :selected="tag == 2">
          我的计划
        </tab-item>
        <tab-item @on-item-click="handler(1)" :selected="tag == 1">
          部门计划
        </tab-item>
      </tab>

      <div class="tab-nav">
        <div
          class="tab-nav-item"
          :class="{ statusIndex: statusIndex == item.key }"
          v-for="(item, index) in tabNav"
          :key="index"
          @click="eventActive(item)"
        >
          <span>{{ tabNum[item.num] || 0 }}</span>
          <span>{{ item.value }}</span>
        </div>
      </div>
      <div class="list-area">
        <template v-if="tableData.length">
          <!-- <checklist
            class="conent-list"
            v-for="item in tableData"
            :check-item="item"
            :key="item.id"
            :item-child="false"
            :title-check="false"
            @eventCheckList="eventCheckDeteil"
          ></checklist> -->
          <div
            class="check-list"
            @click="eventCheckDeteil(item, 'detail')"
            v-for="item in tableData"
            :key="item.id"
          >
            <div class="item-title">
              <span class="title-text">
                {{ item.name }}
              </span>
              <div>
                <template v-if="item.type">
                  <span
                    class="title-tip"
                    style="text-align: right;"
                    :key="index"
                    v-for="(item, index) in handlePlanTypeArr(item.type)"
                    >{{ item }}</span
                  >
                </template>
              </div>
            </div>
            <div class="item-body">
              <div class="body-tag">
                <img
                  src="@/assets/icon/safety_controlled.svg"
                  alt=""
                  style="width:15px;height:16px;margin-right:6px"
                />
                正常：{{ item.normalNum || 0 }}
              </div>
              <div class="body-tag">
                <img
                  src="@/assets/icon/safety_warning.svg"
                  alt=""
                  style="width:15px;height:16px;margin-right:6px"
                />
                异常：{{ item.troubleNum || 0 }}
              </div>
              <div class="body-tag">
                <!-- <x-icon
                  type="ios-minus-outline"
                  fill="#fff"
                  size="18"
                  style="margin-right:4px"
                ></x-icon> -->
                <img
                  src="@/assets/icon/safety_noting.svg"
                  alt=""
                  style="width:15px;height:16px;margin-right:6px"
                />
                未完成：{{ item.unexecuted || 0 }}
              </div>
              <div
                class="body-tag"
                style="padding:2px 8px;"
                @click.stop="eventCheckDeteil(item, 'open')"
              >
                展开
                <x-icon
                  type="ios-arrow-down"
                  v-if="item.showStandard"
                  fill="#fff"
                  size="14"
                ></x-icon>
                <x-icon
                  type="ios-arrow-right"
                  v-else-if="!item.showStandard"
                  fill="#fff"
                  size="14"
                ></x-icon>
              </div>
            </div>
            <div class="item-child" v-if="item.showStandard">
              <div class="child-body">
                <div
                  class="child-list"
                  v-for="checkItem in item.checkStandardList || []"
                  :key="checkItem.id"
                  @click.stop="eventClickStandardItem(item, checkItem)"
                >
                  <img
                    v-if="!checkItem.isAccomplish"
                    src="@/assets/icon/safety_noting.svg"
                    alt=""
                    style="width:16px;height:16px;margin-right:6px"
                  />
                  <img
                    v-else-if="!+checkItem.abnormalNum"
                    src="@/assets/icon/safety_controlled.svg"
                    alt=""
                    style="width:15px;height:16px;margin-right:6px"
                  />
                  <img
                    v-else-if="+checkItem.abnormalNum"
                    src="@/assets/icon/safety_warning.svg"
                    alt=""
                    style="width:15px;height:16px;margin-right:6px"
                  />
                  <span class="list-text">
                    {{ checkItem.checkStandardName }}
                  </span>
                </div>
              </div>
            </div>
          </div>
          <div class="newpage_work_more" v-if="showMoreBtn" @click="getMore">
            查看更多
          </div>
        </template>
        <template v-else>
          <div class="not-content">
            <img src="/static/img/zwlr-icon.png" />
            <div class="title">暂无数据</div>
          </div>
        </template>
      </div>
    </div>
  </div>
</template>
<script>
import { Tab, TabItem, Toast, InlineLoading, Datetime } from "vux";
import iuHeader from "@/components/common/header/index";
import SafetyManageDao from "@/daos/safety_manage_dao";
import checklist from "@/components/common/safetymanage/checklist";
import Application from "@/components/common/application";
import depTree from "@/components/common/tree";

import ChartList from "@/components/common/chart_list/index";
import DataAnalysisDao from "@/daos/data_analysis_dao";

export default {
  name: "earlywrning",
  components: {
    Tab,
    TabItem,
    Toast,
    iuHeader,
    checklist,
    InlineLoading,
    ChartList,
    Datetime,
    Application,
    depTree
  },
  data() {
    return {
      showPie: false,
      showMore: false,
      showTree: false,
      curDepartment: {
        departmentName: "全企业",
        id: ""
      },
      planTypeArr: ["日常", "专项", "综合", "现场", "资料"],
      tabNum: {
        unfinishedNum: 0,
        achieveNum: 0,
        overdueNum: 0
      },
      topNav: [
        { key: "inspectionPlan", name: "检查计划", isSelected: true },
        { key: "risksControl", name: "风险管控", isSelected: false },
        { key: "safetyRisks", name: "隐患整改", isSelected: false }
      ],
      tabNav: [
        { key: 11, value: "未完成", num: "unfinishedNum" },
        { key: 13, value: "已完成", num: "achieveNum" },
        { key: 12, value: "已逾期", num: "overdueNum" }
      ],
      chart: null,
      tableData: [],
      chartList: [],
      checkSecurityRecordData: [],
      showMoreBtn: false,
      certificateAuth: false,
      position: "middle",
      pageSize: 10,
      pageNum: 1,
      total: 0,
      statusIndex: 11,
      tag: 2,
      store: {
        id: 0
      }
    };
  },
  created() {
    this.tag = this.$route.query.tag || 2;
    if (!this.user) {
      this.getUserInfo();
    } else {
      if (this.user.serviceAreaTree.childIdList.length) {
        this.curDepartment = {
          departmentName: "",
          id: this.user.serviceAreaTree.childIdList[0]
        };
      }
    }
  },
  //返回首页的公共方法
  inject: ["backToHomepage",'backToG6page'],

  activated() {
    if (this.user) {
      this.init();
    }
  },
  computed: {
    user() {
      return this.$store.state.user;
    },
    computedList() {
      let arr = this.tableData.filter(e => e.status == this.statusIndex - 1);
      return arr;
    }
  },
  methods: {
    init() {
      this.getList();
      this.getCheckSecurityRecordNumCharts();
      // this.getChartConfig()
    },
    handler(e) {
      this.pageNum = 1;
      this.tag = e;
      this.getList();
    },
    getMore() {
      this.pageNum++;
      this.showMoreBtn = false;
      this.getList();
    },
    back() {
      this.$router.push("/safetycheck");
    },
    getUserInfo() {
      this.$http(this.$API.getUserInfo, {}).then(res => {
        this.$store.commit("saveUser", res);
        if (res.serviceAreaTree.childIdList.length) {
          this.curDepartment = {
            departmentName: '',
            id: res.serviceAreaTree.childIdList[0]
          };
        }
        this.init();
      });
    },
    getChartConfig() {
      let params = {
        code: "AQJC01",
        departmentId: this.curDepartment.id
      };
      DataAnalysisDao.getChartConfig(params, res => {
        this.chartList.splice(0);
        if (res && res.length) {
          this.chartList = res.map(e => {
            e.show = 0;
            e.code = "AQJC01";
            return e;
          });
        }
      });
    },
    eventActive(item) {
      this.pageNum = 1;
      this.showMoreBtn = false;
      this.statusIndex = item.key;
      this.getList();
    },
    getList() {
      if (this.tag === 1) {
        this.getCheckSecurityRecordDepList();
        this.getcheckSecurityRecordDepTabNum();
      } else {
        this.getCheckSecurityRecordUserList();
        this.getcheckSecurityRecordUserTabNum();
      }
    },
    getCheckSecurityRecordNumCharts() {
      let params = {
        // orgId: this.user.org.id,
        departmentId: this.curDepartment.id
      };
      SafetyManageDao.getCheckSecurityRecordNumCharts(params, res => {
        this.checkSecurityRecordData.splice(0);
        if (res) {
          this.checkSecurityRecordData = res;
        }
        this.drawLine(res);
      });
    },
    handlePlanTypeArr(type) {
      let arr = [];
      arr = type.split(",").map(e => this.planTypeArr[e - 1]);
      return arr;
    },
    eventCheckDeteil(item, tag) {
      let { id } = item;
      if (tag === "open") {
        if (!item.showStandard) {
          this.$set(item, "showStandard", true);
          this.tableData.forEach(e => {
            this.$set(e, "showStandard", false);
          });
          item.showStandard = true;
          this.getCheckStandardItemRecordList(item);
        } else {
          this.$set(item, "showStandard", false);
        }
      } else {
        this.$router.push({
          name: "safetyCheckResultList",
          query: {
            id,
            status: this.statusIndex
          }
        });
      }
    },
    eventClickStandardItem(item, checkItem) {
      this.$router.push({
        name: "safetyCheckResultList",
        query: {
          id: item.id,
          checkItemId: checkItem.id,
          status: this.statusIndex,
          isAccomplish: checkItem.isAccomplish,
          showType: "detail"
        }
      });
    },
    getCheckStandardItemRecordList(item, status) {
      let params = {
        checkSecurityRecordId: item.id,
        isAccomplish: "" // 状态  0未检查 1已完成
      };
      SafetyManageDao.getCheckStandardItemRecordList(params, res => {
        if (res && res.length) {
          this.$set(item, "checkStandardList", res);
          // this.checkStandardList = res;
        }
      });
    },
    getCertificateMore() {
      this.pageNum++;
      this.getCertificateList();
    },
    getCheckSecurityRecordDepList() {
      let params = {
        departmentId: this.curDepartment.id,
        // orgId: this.user.org.id,
        pageSize: this.pageSize,
        pageNum: this.pageNum,
        status: this.statusIndex
      };
      SafetyManageDao.getCheckSecurityRecordDepList(params, res => {
        if (this.pageNum === 1) {
          this.tableData.splice(0);
        }
        if (res.content && res.content.length) {
          res.content.forEach(e => {
            e.showStandard = false;
          });
          this.tableData.splice(
            (this.pageNum - 1) * this.pageSize,
            this.pageSize,
            ...res.content
          );
          if (this.tableData[0]) {
            this.tableData[0].showStandard = true;
            this.getCheckStandardItemRecordList(this.tableData[0]);
          }
        }
        this.showMoreBtn = res.totalPages && this.pageNum < res.totalPages;
      });
    },
    getcheckSecurityRecordDepTabNum() {
      let params = {
        departmentId: this.curDepartment.id,
        // orgId: this.user.org.id,
        pageSize: this.pageSize,
        pageNum: this.pageNum,
        status: this.statusIndex
      };
      SafetyManageDao.getcheckSecurityRecordDepTabNum(params, res => {
        if (res) {
          Object.assign(this.tabNum, res);
        }
      });
    },
    getCheckSecurityRecordUserList() {
      let params = {
        departmentId: this.curDepartment.id,
        // orgId: this.user.org.id,
        pageSize: this.pageSize,
        pageNum: this.pageNum,
        status: this.statusIndex
      };
      SafetyManageDao.getCheckSecurityRecordUserList(params, res => {
        if (this.pageNum === 1) {
          this.tableData.splice(0);
        }
        if (res.content && res.content.length) {
          res.content.forEach(e => {
            e.showStandard = false;
          });
          this.tableData.splice(
            (this.pageNum - 1) * this.pageSize,
            this.pageSize,
            ...res.content
          );
          if (this.tableData[0]) {
            this.tableData[0].showStandard = true;
            this.getCheckStandardItemRecordList(this.tableData[0]);
          }
        }
        this.showMoreBtn = res.totalPages && this.pageNum < res.totalPages;
      });
    },
    getcheckSecurityRecordUserTabNum() {
      let params = {
        departmentId: this.curDepartment.id,
        // orgId: this.user.org.id,
        pageSize: this.pageSize,
        pageNum: this.pageNum,
        status: this.statusIndex
      };
      SafetyManageDao.getcheckSecurityRecordUserTabNum(params, res => {
        if (res) {
          Object.assign(this.tabNum, res);
        }
      });
    },
    certificateDetail(id) {
      this.store.id = id;
      this.$router.push({
        name: "certificate_manage",
        query: {
          id: id
        }
      });
    },
    showTreeFn(status) {
      if (status) {
        this.$refs.selece_icon.$el.style.transform = "rotate(-180deg)";
      } else {
        this.$refs.selece_icon.$el.style.transform = "rotate(0deg)";
      }
      this.showTree = status;
    },
    initCurDepartment(id, departmentName) {
      console.log(id, departmentName);
      this.curDepartment = {
        departmentName,
        id
      };
    },
    change(id, departmentName) {
      this.curDepartment = {
        departmentName,
        id
      };
      this.getList();
      this.getCheckSecurityRecordNumCharts();
    },
    drawLine(data) {
      if (!this.chart) {
        let option = {
          color: ["#F94B48", "#F9D64A", "#54CA75", "#456DE5"],
          grid: {
            containLabel: true,
            top: "8%",
            bottom: "18%",
            left: "4%",
            right: "4%"
          },
          tooltip: {
            trigger: "axis",
            axisPointer: {
              type: "line",
              lineStyle: {
                color: "#979797"
              }
            },
            textStyle: {
              align: "left"
            }
          },
          legend: { bottom: "4%", textStyle: { color: "#fff" } },
          textStyle: {
            color: "#959595"
          },
          xAxis: {
            type: "category",
            axisLine: {
              lineStyle: {
                color: "#979797"
              }
            },
            axisTick: {
              show: false
            }
          },
          yAxis: {
            type: "value",
            axisLine: {
              show: false
            },
            axisTick: {
              show: false
            },
            splitLine: {
              lineStyle: {
                color: "#979797",
                type: "dotted"
              }
            }
          },
          series: [
            {
              type: "bar",
              itemStyle: { color: "#456DE5" }
            },
            {
              type: "bar",
              itemStyle: { color: "#DC9610" }
            }
            // {
            //   type: "bar",
            //   itemStyle: { color: "#DD6031" }
            // }
          ]
        };

        this.chart = this.$echarts.init(this.$refs.chart);
        this.chart.setOption(option);
      }
      let source = this.formatRecordDataDataset(data);
      this.chart.setOption({
        dataset: {
          source
        }
      });
      let option = this.chart.getOption();
      if (!source.length) {
        option.graphic = [
          {
            type: "text",
            left: "center",
            top: "40%",
            style: {
              text: "",
              fill: "#fff",
              fontSize: 18
            }
          }
        ];
        this.chart.setOption(option, true);
      } else {
        option.graphic = [];
        this.chart.setOption(option, true);
      }
    },
    formatRecordDataDataset(data) {
      let dataset = [],
        xAxis = [],
        yAxis = [];
      if (data && data.length) {
        xAxis.push("product", "已执行", "已逾期");
        data.forEach((e, i) => {
          yAxis.push([e.name, +e.achieveNum, +e.overdueNum]);
          // e.dataList.forEach((ele, index) => {
          // yAxis[i].push(ele.statusCount);
          // });
        });
        dataset.push(xAxis, ...yAxis);
        return dataset;
      } else {
        return [];
      }
    }
  }
};
</script>
<style lang="less">
.newpage_tab {
  .vux-tab {
    height: 45px !important;
    background: #1b1c32;
    .vux-tab-item {
      background: none;
      color: #fff;
    }
  }
}
</style>
<style lang="less" scoped>
.newpage {
  height: 100vh;
  background: #1b1c32;
  overflow-y: scroll;
}
.list-area {
  padding: 8px;
  .check-list {
    margin-bottom: 16px;
  }
}
.produce-tab {
  display: flex;
  height: 44px;
  width: 100%;
  align-items: center;
  background: #22233f;
  .produce-tab-item {
    position: relative;
    width: 50%;
    height: 44px;
    line-height: 44px;
    text-align: center;
    font-size: 14px;
    color: #fff;
    &.active {
      color: #456de6;
      background-color: initial;
      .line {
        position: absolute;
        left: 50%;
        bottom: 0;
        -webkit-transform: translateX(-50%);
        transform: translateX(-50%);
        width: 50%;
        height: 3px;
        background: #456de6;
      }
    }
  }
}
.newpage_work_more {
  height: 40px;
  font-size: 12px;
  line-height: 40px;
  text-align: center;
  color: #456de6;
}

.newpage_work_bottom {
  padding: 16px;
}
.newpage_work {
  .fixed_dep_box {
    // padding: 5px 0;
    background: #22233f;
    width: 80%;
    .btn_box {
      display: flex;
      // padding: 0 16px;
      justify-content: space-between;
      position: relative;
      height: 28px;
      .department_select {
        position: relative;
        width: 100%;
        border-radius: 2px;
        background: #292a4d;
        transition: background 0.3s ease-in-out;
        &.statusIndex {
          background: #383a69;
        }
        .department_name {
          padding: 5px 9px;
          padding-right: 30px;
          color: #fff;
          font-size: 12px;
          overflow: hidden;
          text-overflow: ellipsis;
          white-space: nowrap;
          text-align-last: left;
        }
        .selece_icon {
          position: absolute;
          top: 50%;
          right: 8px;
          margin-top: -6px;
          transition: transform 0.3s ease-in-out;
          transform-origin: 50% 50%;
        }
      }
      .dep_box {
        position: absolute;
        left: 16px;
        right: 16px;
        bottom: -255px;
        padding-right: 16px;
        background: rgba(255, 255, 255, 0.9);
        border-radius: 4px;
        height: 250px;
        overflow-y: scroll;
        z-index: 9999999;
        -webkit-overflow-scrolling: touch;
      }
      .toggle {
        outline: none;
        border: none;
        background: inherit;
        font-size: 14px;
        color: #fff;
        .btn_icon {
          margin-top: -5px;
        }
      }
    }
  }
  &.show-more-open {
    overflow: hidden;
  }
  // position: fixed;
  .showPie {
    margin: 0 auto;
    padding: 8px 0;
    width: 100%;
    background-color: #18182c;
    position: relative;
    &.show {
      height: auto;
    }

    .chart_empty {
      position: absolute;
      display: block;
      width: 84px;
      bottom: 20%;
      left: 50%;
      transform: translate(-50%, -50%);
      img {
        width: 100%;
      }
      p {
        text-align: center;
        color: #9ec6fb;
        font-size: 13px;
      }
    }
    // div {
    // background-color: unset !important;
    // }
    .show-title {
      color: #333;
      display: flex;
      justify-content: space-between;
      align-items: center;
      font-size: 16px;
      padding: 0 16px;
      .show-btn {
        color: #fff;
        font-size: 12px;
        display: flex;
        align-items: center;
      }
    }
  }
  .tab-nav {
    display: flex;
    align-items: center;
    justify-content: space-around;
    margin: 12px 0;
    .tab-nav-item {
      flex: 1;
      color: #456de6;
      font-size: 14px;
      padding: 6px 0 8px;
      margin: 0 4px;
      text-align: center;
      border-radius: 4px;
      border: 1px solid #456de6;
      display: flex;
      flex-direction: column;
      &.overdue {
        color: #f5a623;
        border: 1px solid #f5a623;
      }
      &.statusIndex {
        color: #fff;
        background: #456de6;
        border: 1px solid #456de6;
        &.overdue {
          color: #fff;
          background: #f5a623;
          border: 1px solid #f5a623;
        }
      }
    }
  }
  .check-list {
    padding: 8px;
    height: auto;
    min-height: 80px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    font-size: 14px;
    color: #fff;
    background-color: #292a4d;
    border-radius: 4px;
    .ellipsis {
      display: inherit !important;
      overflow: hidden;
      white-space: nowrap;
      text-overflow: ellipsis;
    }
    .item-title {
      font-size: 17px;
      color: #fff;
      // overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      word-break: keep-all;
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 8px;
      &.overdue {
        justify-content: flex-start;
      }
      .tag {
        color: #4266d6;
        float: right;
        font-size: 15px;

        &.yollow {
          color: #dd9710;
        }
        &.redy {
          color: #f56c6c;
        }
        &.green {
          color: #67c23a;
        }
      }
      .title-label {
        margin-left: -8px;
        border-radius: 20px;
        border-top-left-radius: 0px;
        border-bottom-left-radius: 0px;
        font-size: 14px;
        padding: 0 12px 1px 8px;
        background-color: #456de6;
        margin-right: 8px;
      }
      .title-text {
        margin-right: 8px;

        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
      }
      .title-check {
        font-size: 14px;
      }
      .title-tip {
        width: 100%;
        font-size: 14px;
        padding: 1px 4px 2px;
        border-radius: 4px;
        margin-left: 4px;
        font-size: 13px;
        background-color: #456de6;
        &.status {
          color: #456de6;
        }
        &.status1,
        &.status4 {
          color: #4fa8e7;
        }
        &.status3 {
          color: #456de6;
        }
        &.status5 {
          color: #dd9710;
        }
        &.status9,
        &.status7 {
          color: #dd9710;
        }
        // &.green {
        //   color: #67c23a;
        // }
        // &.gray {
        //   color: #999;
        // }
      }
    }
    .item-body {
      // color: #456de6;
      font-size: 16px;
      padding: 8px 0;
      display: flex;
      justify-content: space-between;
      .body-tag {
        font-size: 14px;
        display: flex;
        align-items: center;
      }
      .item-show {
        color: #fff;
        font-size: 14px;
        width: 52px;
        padding: 1px 0;
        flex: none;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 80px;
        border: 1px solid #456de6;
      }
    }
    .item-body-other {
      color: rgba(255, 255, 255, 0.6);
    }
    .item-bottom {
      padding-top: 6px;
      border-top: 1px solid rgba(255, 255, 255, 0.5);
      display: flex;
      align-items: center;
      justify-content: space-between;
      .child-body-state {
        margin-left: 8px;
        padding: 0 2px 1px;
        color: #456de6;
        border: 1px solid #456de6;
        border-radius: 2px;
      }
      .handle-btn {
        margin-left: 8px;
        flex: none;
      }
      .btn {
        color: #fff;
        font-size: 14px;
        background-color: #456de6;
        padding: 2px 11px 3px;
        border-radius: 12px;
      }
    }
    .item-child {
      border-top: 1px solid rgba(255, 255, 255, 0.5);
      padding-bottom: 6px;
      font-size: 14px;
      color: rgba(255, 255, 255, 0.6);
      .child-title {
        color: #fff;
        // overflow: hidden;
        font-size: 16px;
        text-overflow: ellipsis;
        white-space: nowrap;
        word-break: keep-all;
        display: flex;
        align-items: center;
        // justify-content: space-between;

        .child-label {
          font-size: 14px;
          margin-right: 8px;
          padding: 0 6px 1px;
          color: #fff;
          border: 1px solid #456de6;
          border-radius: 2px;
        }
        .child-tip {
          width: 100%;
          margin-right: 8px;
          font-size: 14px;
          &.status {
            color: #dd9710;
          }
          &.status {
            color: #456de6;
          }
          &.status1,
          &.status4 {
            color: #4fa8e7;
          }
          &.status3 {
            color: #456de6;
          }
          &.status5 {
            color: #dd9710;
          }
          &.status9,
          &.status7 {
            color: #dd9710;
          }
        }
      }

      .child-body {
        font-size: 14px;
        margin: 4px 0;
        display: flex;
        flex-direction: column;
        // align-items: center;
        // justify-content: space-between;
        .child-list {
          display: flex;
          align-items: center;
          justify-content: space-between;
          padding: 12px 6px;
          border-bottom: 1px solid rgba(255, 255, 255, 0.5);
          .list-text {
            width: 100%;
            padding: 0 8px;
          }
        }
        .detail-btn {
          width: 100%;
          // padding: 6px;
          // margin-top: 16px;
          .btn {
            width: 100px;
            margin: 12px auto 0;
            padding: 6px 0;
            font-size: 14px;
            color: #ffffff;
            text-align: center;
            background: #3967dc;
            border-radius: 5px;
          }
        }
        .child-body-state {
          margin-left: 8px;
          padding: 0 2px 1px;
          color: #456de6;
          border: 1px solid #456de6;
          border-radius: 2px;
        }
        &.handle {
          justify-content: space-between;
          color: #fff;
        }
      }
      .handle-btn {
        margin-left: 8px;
        flex: none;
      }
      .btn {
        color: #fff;
        font-size: 14px;
        background-color: #456de6;
        padding: 2px 11px 3px;
        border-radius: 12px;
      }
    }
    .their {
      font-size: 14px;
      color: #fff;
    }
    .more  {
      display: -webkit-box !important;
      overflow: hidden;
      text-overflow: ellipsis;
      word-break: break-all;
      -webkit-box-orient: vertical;
      -webkit-line-clamp: 2;
    }
    .time {
      font-size: 14px;
      color: rgba(69, 109, 230, 1);
    }
    .newpage_work_more {
      height: 40px;
      font-size: 12px;
      line-height: 40px;
      text-align: center;
      color: #456de6;
    }
  }
}
.not-content {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  text-align: center;
  img {
    width: 64px;
    height: 64px;
    margin-left: 20px;
  }
  .title {
    margin: 8px auto;
    width: 126px;
    height: 40px;
    font-size: 14px;
    font-family: PingFangSC-Regular, PingFang SC;
    font-weight: 400;
    color: rgba(158, 198, 251, 1);
    line-height: 20px;
    text-align: center;
  }
}
.newpage_title {
  height: 44px;
  background: #18182c;
  padding: 0 15px;
  display: flex;
  span {
    display: inline-block;
    color: #ffff;
    font-size: 15px;
    vertical-align: middle;
  }
  .nav-left {
    .company-logo {
      height: 100%;
      width: 48px;
    }
  }
  .nav-center {
    flex: 1;
    line-height: 44px;
    text-align: center;
    font-size: 16px;
    color: #fff;
  }
  .nav-right {
    margin-top: 12px;
    width: 36px;
    height: 100%;
    display: flex;
    justify-content: flex-end;
    .paidan {
      margin-top: -8px;
      i {
        font-size: 26px;
      }
    }
  }
  .nav_border_left {
    border-left: 2px solid #fff;
    height: 20px;
  }
}
</style>
